{extend name="public:base" /}
{block name="content"}
<section id="content">
  <section class="vbox">
    <section class="scrollable padder">
      {include file="public:mylocal" /}
      <div class="m-b-md">
        <h3 class="m-b-none" id="say_hello"></h3>
        <small>欢迎进入{:config('domain_config.console_name')}</small> </div>
      <section class="panel panel-default">
        <div class="row m-l-none m-r-none bg-light lter">
          <div class="col-sm-6 col-md-4 padder-v b-r b-light"> <span class="fa-stack fa-2x pull-left m-r-sm"> <i class="fa fa-dribbble fa-stack-2x text-info"></i>  </span> <a class="clear" href="#"> <span class="h3 block m-t-xs"><strong>{$today_report_res.eye_pc_num + $today_report_res.eye_m_num}</strong></span> <small class="text-muted text-uc">今日站点总访问量</small> </a> </div>

          <div class="col-sm-6 col-md-4 padder-v b-r b-light lt">
        <span class="fa-stack fa-2x pull-left m-r-sm">
          <i class="fa fa-desktop fa-stack-2x text-warning"></i>
        </span>
            <a class="clear" href="#">
          <span class="h3 block m-t-xs">
            <strong id="bugs">{$today_report_res.eye_pc_num}</strong>
          </span>
              <small class="text-muted text-uc">今日PC端访问量</small>
            </a>
          </div>
          <div class="col-sm-6 col-md-4 padder-v b-r b-light">
      	<span class="fa-stack fa-2x pull-left m-r-sm">
      		<i class="fa fa-mobile fa-stack-2x text-danger"></i>
      	</span>
            <a class="clear" href="#">
      		<span class="h3 block m-t-xs">
      			<strong id="firers">{$today_report_res.eye_m_num}</strong>
      		</span>
              <small class="text-muted text-uc">今日手机端访问量</small>
            </a>
          </div>

        </div>
      </section>
    </section>

    <script language="javaScript">
      var say_txt = '你好';
      var dom = document.getElementById('say_hello');
      var now = new Date(),hour = now.getHours();
      if(hour < 6){
        say_txt = " 凌晨好！";
      }else if (hour < 9){
        say_txt = " 早上好！";
      }else if (hour < 12){
        say_txt = " 上午好！";
      }else if (hour < 14){
        say_txt = " 中午好！";
      } else if (hour < 17){
        say_txt = " 下午好！";
      }else if (hour < 19){
        say_txt = " 傍晚好！";
      }else if (hour < 22){
        say_txt = " 晚上好！";
      }else {
        say_txt = " 注意休息哦！";
      }
      dom.innerHTML = say_txt;
    </script>
    {/block}
    {/extend}